/*
 * BinaryTree.cpp
 *
 *  Created on: 2012-04-12
 *      Author: AV
 */

#include "BinaryTree.h"

namespace graph {

BinaryTree::BinaryTree() {
	root = NULL;
}

BinaryTree::~BinaryTree() {
	// Need to delete all the nodes!



	root =  NULL;
}

BinaryTree::BinaryTree( TreeNode* r ){
   root = new TreeNode( *r );
}

BinaryTree::BinaryTree( TreeNode* r, const BinaryTree* leftSubtree, const BinaryTree* rightSubtree){
	root = new TreeNode( *r );
	root->setLeft( leftSubtree->root );
	root->setRight( rightSubtree->root );
}
} /* namespace graph */
